package tiandang.core.service;

import tiandang.core.error.BusinessException;
import tiandang.core.model.Manager;

import java.math.BigDecimal;
import java.util.List;

public interface ManagerService {

  Object getList(String name, Integer currentPage, Integer limit);

  Manager getManagerById(Integer id);

  void save(Manager manger) throws BusinessException;

  void update(Manager manger) throws BusinessException;

  void delete(Integer id);

  void setFrozen(Integer id, Integer status);

  void addFrozenReward(Integer id, BigDecimal reward);

  void resetFrozenRewardToNoBalance();

  void balanceReward(Integer id);

  List<Manager> getListByIdList(List<Integer> idList);

  List<Manager> getAllNormal();

  void updateOpenidById(Integer id, String openid);
}
